using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Intpicks : MonoBehaviour
{
    public GameObject pickup;
    public int count;
    public float raduio;
    // Start is called before the first frame update
    void Start()
    {
        Transform pTransform = GameObject.Find("pickups").transform;
        for (int i = 0; i < count; i++)
        {
            float angle = i * (2 * Mathf.PI / count);
            Vector3 postion = new Vector3(Mathf.Cos(angle), 0.1f, Mathf.Sin(angle)) * raduio;
            Instantiate(pickup, postion, Quaternion.identity, pTransform);
        }
    }

    // Update is called once per frame
    void Update()
    {

    }
}
